package com.framework.utils;

//import lombok.Data;

import java.util.List;

//@Data
public class Node implements java.io.Serializable {
    private static final long serialVersionUID = -2721191232926604726L;

    private String id;
    private String pid;
    private Node parent;

    private List<Node> children;
    private String note;
    private int states;
    private int status;
    private String stateStr;
    private String deptName;
    private String name;
    private String deptCode;
    private String code;

    private int level;
    private String rootId;
    private boolean isLeaf;

    private String orgName;
    private int orgType;
    private String icon;
    private String type;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Node getParent() {
        return parent;
    }

    public void setParent(Node parent) {
        this.parent = parent;
    }

    public List<Node> getChildren() {
        return children;
    }

    public void setChildren(List<Node> children) {
        this.children = children;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public int getStates() {
        return states;
    }

    public void setStates(int states) {
        this.states = states;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDeptCode() {
        return deptCode;
    }

    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getRootId() {
        return rootId;
    }

    public void setRootId(String rootId) {
        this.rootId = rootId;
    }

    public boolean isLeaf() {
        return isLeaf;
    }

    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public int getOrgType() {
        return orgType;
    }

    public void setOrgType(int orgType) {
        this.orgType = orgType;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Node() {
        super();
    }



    public Node(String id, String pid, String deptName,String deptCode, String note,int states,String stateStr) {
        this.id = id;
        this.pid = pid;
        this.deptName = deptName;
        this.deptCode = deptCode;
        this.note = note;
        this.states = states;
        this.stateStr = stateStr;
    }

    public Node(String id, String pid, String name,String code, String note,int status) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.code = code;
        this.note = note;
        this.status = status;
        this.states = status;
    }
    public Node(String id, String pid, String orgName,String code, String note,int status,int orgType) {
        this.id = id;
        this.pid = pid;
        this.orgName = orgName;
        this.code = code;
        this.note = note;
        this.status = status;
        this.orgType = orgType;
    }

    public Node(String id, String pid, String name, String note, String icon) {
        this.id = id;
        this.pid = pid;
        this.note = note;
        this.name = name;
        this.icon = icon;
    }

    public Node(String id, String pid, String name, String type) {
        this.id = id;
        this.pid = pid;
        this.name = name;
        this.type = type;
    }
}
